/**
 * 
 */
package com.hawkfly.bondingclass;

import java.sql.SQLException;
import java.util.Map;

import com.wbcs.config.component.application.report.ReportBean;
import com.wbcs.jbsf.dao.JBSFDaoTemplate;
import com.wbcs.system.ReportRequest;
import com.wbcs.system.component.application.report.configbean.editablereport.AbsJavaEditActionBean;

/**
 * 删除磁盘存储物理图片
 * @author hawkfly
 */
public class OtherDels extends AbsJavaEditActionBean
{

    @Override
	public void updateData(ReportRequest rrequest,ReportBean rbean,Map<String,String> mRowData,Map<String,String> mParamValues) throws SQLException
    {
        //是否删除索引图片操作
        String isClearsytp = mRowData.get("isClearsytp");
        if(Boolean.valueOf(isClearsytp)){
            String newsid = mRowData.get("NEWSID");
            String sql = "update T_NEWS_DETAILS set SYTP=null where ID=?";
            JBSFDaoTemplate daoTemplate = new JBSFDaoTemplate(false);
            daoTemplate.update(sql,rrequest.getConnection(),newsid);
        }
        rrequest.getWResponse().addOnloadMethod("loadUploader","{paths: '"+mParamValues.get("pZYLJ")+"', ids: '"+mRowData.get("ZYXX")+"'}",false);
        //得到图片path，得到contextPath, 得到全路径
        //验证图片资源在资源表里是否存在，不存在执行物理文件删除
        
    }
}

